package cool.tsy.emos.wx.form;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author: hongxuan.wang
 * @date: Created in 2021/11/5 14:54
 * @description: 注册值对象
 * @mail: 1443424326@qq.com
 */
@Data
@ApiModel
public class RegisterForm {

    @NotBlank(message = "邀请码不能为空")
    @Pattern(regexp = "^[0-9]{6}$", message = "邀请码必须是6位数字")
    private String registerCode;

    @NotBlank(message = "微信临时授权不能为空")
    private String code;

    @NotBlank(message = "昵称不能为空")
    private String nickname;

    @NotBlank(message = "头像不能为空")
    private String photo;
}
